package com.example.jsd2205.vx.emos.db.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
/*
 * @author admin 兰
 * 映射message_ref集合
 * */
@Data
@Document(collection = "message_ref")
public class MessageRefEntity implements Serializable {
    @Id
    private String _id;
    //主键
    @Indexed
    private String messageId;
    //message记录的ID
    @Indexed
    private Integer receiverId;
    //接收人ID
    @Indexed
    private Boolean readFlag;
    //是否已读
    @Indexed
    private Boolean lastFlag;
    //是否为新接收的消息

}
